<?php
// header('Content-Type: text/html');

$oJob = JobHandler::getJob($_SESSION['iJobID']);
$oUsers = UserHandler::getUsers();
$iChangers = JobHandler::getUsersWithAccess('mission', 'write', $_SESSION['iJobID']);

foreach ($iChangers as $iSomeChanger) {
	print "\t\t<user";
	print " id=\"{$iSomeChanger}\"";
	print " username=\"{$oUsers[$iSomeChanger]->sUser}\"";
	print " name=\"{$oUsers[$iSomeChanger]->sFullname}\"";
	print "/>\n";
}

print "<project";
print " id=\"{$_SESSION['iJobID']}\"";
print " name=\"{$oJob->sName}\"";
print "/>";
?>
